package com.tiancheng.trade.payment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 清分分账异常重新处理表
 *
 * @author likailun
 * @date 2022-12-02 16:45
 */
@TableName(value = "settle_dist_error")
@Data
public class SettleDistError implements Serializable {

    // 主键
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 商源分账记录id
     */
    private String sourceDistId;

    /**
     * 本批次抽佣id
     */
    private String batchDistId;
    /**
     * 分账-文件名
     */
    private String distFileName;

    /**
     * 分账金额
     */
    private Integer distAmount;

    /**
     * 分账状态
     */
    private String distStatus;

    /**
     * 分账-附言
     */
    private String distDesc;
    /**
     * 分账-失败原因
     */
    private String distFailReason;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 分账成功金额
     */
    private Integer distAmountSc;



}